<template>
  <view class="su-flex-box" :style="{justifyContent,height}">
    <slot></slot>
  </view>
</template>

<script>
  export default {
    name:"su-flex-box",
    props:{
      justifyContent:{
        type:String,
        default:'flex-start'
      },
      height:{
        type:String,
        default:'auto'
      }
    },
    data() {
      return {
        
      };
    }
  }
</script>

<style lang="scss" scoped>
.su-flex-box{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
}
</style>